package com.cy.service;

import com.cy.bean.Recharge;
import com.cy.bean.Vipset;
import com.cy.mapper.VipsetMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class VipsetServiceImpl implements VipsetService {

    @Autowired
    private VipsetMapper vipsetMapper;

    //充值
    @Override
    public int vipCharge(Vipset vipset) {
        return vipsetMapper.vipCharge(vipset);
    }

    //修改
    @Override
    public int uptVip(Vipset vipset) {
        return vipsetMapper.uptVip(vipset);
    }

    //查看
    @Override
    public Vipset selectVipByUid(int uid) {
        return vipsetMapper.selectVipByUid(uid);
    }

    //插入充值记录
    @Override
    public int insertVip(Recharge recharge) {
        return vipsetMapper.insertVip(recharge);
    }
}
